<template>
    <div class="tobus">
      <div class="tobuks">
        <div class="jiankang">{{arr.name}}</div>
        <div class="gongnnegs"><span :class="['iconfont',arr.icon]"></span></div>
      </div>
    </div>
</template>

<script>
import getlink from "../../apis/getapi"
export default {
   data() {
    return {
      arr: {},
    };
  },
  mounted() {
    getlink("/data/list/xiaoming").then((ok) => {
      console.log(ok.data.one);
      this.arr = ok.data.one;
    });
  },
};
</script>

<style scoped>

.tobus {
  background: #f3f4f6;
  top: 0;
  position: fixed;
  display: flex;
  font-size: 0.16rem;
  height: 0.8rem;
  width: 100%;
  justify-content: center;
  align-items: center;
}
.tobuks {
  width: 90%;
  height: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.jiankang {
  font-size: 25px;
}
.iconfont {
  font-size: 25px;
}
</style>